package box.tuson.com.tusonbox;

import android.content.*;
import android.os.*;
import android.support.v7.app.*;
import android.view.*;
import android.view.View.*;
import android.widget.*;

public class qqkjwb extends AppCompatActivity
{
	private EditText a,b,c;
	private Button bn;
    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
		requestWindowFeature(getWindow().FEATURE_NO_TITLE);
        setContentView(R.layout.qqkjwb);
		a=(EditText) findViewById(R.id.qzonEditText1);
		b=(EditText) findViewById(R.id.qzonEditText2);
		c=(EditText) findViewById(R.id.qzonEditText3);
		bn=(Button) findViewById(R.id.qzonButton1);
		bn.setOnClickListener(new OnClickListener(){

				@Override
				public void onClick(View p1)
				{
					String s="[em]e10002[/em]{uin:"
						+a.getText().toString()
						+",nick:"+b.getText().toString()
						+",who:1}";
					c.setText(s);
					ClipboardManager manager = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);
					manager.setText(s);
					System.out.println(s);


					Toast.makeText(qqkjwb.this,"已经复制到了剪贴板",Toast.LENGTH_LONG).show();
				}
			});
	}
}

